//
//  NOAdressView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/28.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "NOAdressView.h"

@implementation NOAdressView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        GLGWImageView * addImageView = [[GLGWImageView alloc] initWithFrame:CGRectMake((KScreenWidth - kWidthProportion_In_iPhoneTriploid(100))/2, 0, kWidthProportion_In_iPhoneTriploid(100), kHeightProportion_In_iPhoneTriploid(72)) imageName:@"zanwushouhuodizhi" inSuperView:self];
        //
        GLGWLabel * tosLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(0, kY_With_View(addImageView, 22), KScreenWidth, kHeightProportion_In_iPhoneTriploid(20)) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        tosLabel.text = @"暂无收货地址";
        tosLabel.textAlignment = NSTextAlignmentCenter;
        //
        self.addBut = [[GLGWButton alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(70), kY_With_View(tosLabel, 44), KScreenWidth - kWidthProportion_In_iPhoneTriploid(140), kHeightProportion_In_iPhoneTriploid(44)) titleLableFont:SYSTEMFONT(14) titleColor:[UIColor whiteColor] inSuperView:self];
        self.addBut.image_Name = @"adress_gord";
        self.addBut.title = @"新建收货地址";//
        self.addBut.backgroundColor = kColor_Rule_Yellow;
        self.addBut.layer.cornerRadius = kHeightProportion_In_iPhoneTriploid(22);
        self.addBut.layer.masksToBounds = YES;
        [self.addBut setImagePositionWithType:SSImagePositionTypeLeft spacing:kWidthProportion_In_iPhoneTriploid(10)];
    }
    return self;
}

@end
